from abc import ABC, abstractmethod


class BaseTask(ABC):
    # 定义为抽象类，只能被继承，不能实例化
    __abstract__ = True

    @abstractmethod
    async def run(self):
        pass

    @abstractmethod
    def get_trigger(self) -> str:
        pass

    @abstractmethod
    def get_settings(self) -> dict:
        pass
